package com.flurry.android;

import android.content.Context;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import java.util.Iterator;
import java.util.List;

final class ax
  implements gj
{
  private static final String p = ax.class.getSimpleName();

  public final boolean a(Context paramContext, gl paramgl)
  {
    if (paramgl == null);
    String str1;
    List localList;
    do
    {
      do
      {
        return false;
        str1 = paramgl.O();
      }
      while (TextUtils.isEmpty(str1));
      localList = paramgl.bI();
    }
    while (localList == null);
    PackageManager localPackageManager = paramContext.getPackageManager();
    String str2 = paramContext.getPackageName();
    Iterator localIterator = localList.iterator();
    boolean bool1 = true;
    String str3;
    int i;
    if (localIterator.hasNext())
    {
      str3 = (String)localIterator.next();
      if ((TextUtils.isEmpty(str1)) || (localPackageManager == null) || (TextUtils.isEmpty(str2)) || (TextUtils.isEmpty(str3)))
      {
        i = 0;
        label106: if (i != 0)
          break label244;
      }
    }
    label244: for (boolean bool2 = false; ; bool2 = bool1)
    {
      bool1 = bool2;
      break;
      if (-1 == localPackageManager.checkPermission(str3, str2))
      {
        cy.d(p, str1 + ": package=\"" + str2 + "\": AndroidManifest.xml should include uses-permission node with " + "android:name=\"" + str3 + "\"");
        i = 0;
        break label106;
      }
      new StringBuilder().append(str1).append(": package=\"").append(str2).append("\": AndroidManifest.xml has uses-permission node with ").append("android:name=\"").append(str3).append("\"").toString();
      i = 1;
      break label106;
      return bool1;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.ax
 * JD-Core Version:    0.6.2
 */